package com.erp.erp_dao.money;

import com.erp.erp_entitys.money.entity.ReceivePaymentSplitEntity;

import java.util.List;

/**
 * 资金管理-收款-拆分表(ReceivePaymentSplit)表数据库访问层
 *
 * @author lst
 * @since 2020-12-15 19:57:21
 */
public interface IReceivePaymentSplitDao {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    ReceivePaymentSplitEntity queryById(Integer id);


    /**
     * 通过实体作为筛选条件查询
     *
     * @param receivePaymentSplit 实例对象
     * @return 对象列表
     */
    List<ReceivePaymentSplitEntity> queryAll(ReceivePaymentSplitEntity receivePaymentSplit);

    /**
     * 新增数据
     *
     * @param receivePaymentSplit 实例对象
     * @return 影响行数
     */
    int insert(ReceivePaymentSplitEntity receivePaymentSplit);

    /**
     * 修改数据
     *
     * @param receivePaymentSplit 实例对象
     * @return 影响行数
     */
    int update(ReceivePaymentSplitEntity receivePaymentSplit);

    /**
     * 详情批量新增
     * @param list 新增对象集合
     * @return 影响行数
     */
    int addList(List<ReceivePaymentSplitEntity> list);


}